#include<iostream>
using namespace std;
int  main()
{
    int a = 40, c = 212;
    cout << ((-8 + 22) * a) - 10 + (c / 2);

}